package com.zwj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zwj
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_user")
@ApiModel(value="CourseUserEntity对象", description="")
public class CourseUserEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "课程ID")
    @TableField("courseId")
    private Long courseId;

    @ApiModelProperty(value = "用户Id")
    @TableField("userId")
    private Long userId;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态,0:在 1:被删除 2退出，3结束")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "评价")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "0无证书，1有证书")
    @TableField("certificate")
    private Integer certificate;

    @ApiModelProperty(value = "成绩")
    @TableField("achievement")
    private Integer achievement;

    @ApiModelProperty(value = "证书取得时间")
    @TableField("certificateTime")
    private LocalDate certificateTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "学习时长")
    @TableField("time")
    private String time;

    @ApiModelProperty(value = "批次id")
    @TableField("batch_id")
    private Long batchId;

    @ApiModelProperty(value = "购买,0未购买,1购买")
    @TableField("purchase")
    private Integer purchase;


}
